package com.atguigu.flow.demo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.atguigu.flow.comm.Tokentime;
import com.atguigu.flow.config.DgMVCProperties;
import com.atguigu.flow.entity.LoginBO;
import com.atguigu.flow.entity.ParamBO;
import com.atguigu.flow.entity.UserListBO;
import com.atguigu.flow.entity.vo.TokenInfoBO;
import com.atguigu.flow.mapper.DeclarationsMapper;
import com.atguigu.flow.mapper.ShipmentsMapper;
import com.atguigu.flow.service.*;
import com.atguigu.flow.utils.*;
import lombok.extern.slf4j.Slf4j;
import okhttp3.*;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import org.apache.logging.log4j.util.Strings;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.*;

@RunWith(SpringRunner.class)
@SpringBootTest
@Slf4j
@MapperScan("com.atguigu.flow.mapper")


public
class shipements_updatejc_tkrq {
    @Autowired
    private
    DeclarationsMapper declarationsMapper;
    @Autowired
    private
    ShipmentsMapper shipmentsMapper;


    @Autowired
    DgMVCProperties wxMVCProperties;

    final static String SLAT = "loie_api";

    @Test
    public void password_md5() {
        String password = "123456";
        password = SecureUtil.MD5Encode(password);
        System.out.println(password);
    }
    @Test
    public void update_shipments_jctkrq(){
        String invoiceno="A75RS23102";
        Date invoicedate=declarationsMapper.getIvoiceDate(invoiceno);
        System.out.println(invoicedate);

    }

}
